package com.woniuxy.processclient.client;


import com.woniuxy.core.model.Result;
import com.woniuxy.processclient.client.dto.CountCardDto;
import com.woniuxy.processclient.client.dto.ValidCardDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient("card-server")
public interface CardFeignClient {

    @GetMapping("/card/countCard/findById")
    public Result<CountCardDto> findById(@RequestParam("cardId") Integer cardId) ;

    @GetMapping("/card/validCard/findById")
    public Result<ValidCardDto> findValidCardById(@RequestParam("cardId") Integer cardId);
}
